package cinema.v1_0.model;

public class User {
    private String id;
    private String name;
    private String password;   // 1.0 明文
    private String type;       // ADMIN / MANAGER / FRONT
    private String phone;

    public User(String id, String name, String password, String type, String phone) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.type = type;
        this.phone = phone;
    }

    public String getId()       { return id; }
    public String getName()     { return name; }
    public String getPassword() { return password; }
    public String getType()     { return type; }
    public String getPhone()    { return phone; }

    public void setPassword(String password) { this.password = password; }
    public void setType(String type)         { this.type = type; }
    public void setPhone(String phone)       { this.phone = phone; }

    @Override
    public String toString() {
        return id + "," + name + "," + password + "," + type + "," + phone;
    }
}
